package work.mediway.common.domain.constant;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2020/1/21
 */
public class Constant {

    /**
     * 主键的数字部分长度
     */
    public static final int PRIMARY_KEY_NUM_LEN = 5;

    /**
     * 系统名称
     */
    public static final String SYSTEM_NAME = "MDM";


    public static final String SCHEMA_NAME_ = "mdm_User.";


    /**
     * 排序规则：降序
     */
    public static final String ORDER_DESC = "desc";
    /**
     * 排序规则：升序
     */
    public static final String ORDER_ASC = "asc";

    /**
     * 允许下载的文件类型，根据需求自己添加（小写）
     */
    public static final String[] VALID_FILE_TYPE = {".xlsx", "zip"};


    /**
     * 默认父节点id
     */
    public static final String DEFAULT_ROOT = "0";
    public static final Long DEFAULT_PARENT = 0L;

    public static final String LOG_STR = "\n========================================== \n{} \n==========================================";

    // ====================================EMRMS相关============================ //

    /**
     * 自定义前缀默认填充长度
     */
    public static final Integer CODE_FILL_LEN = 5;

    /**
     * 权限代码前缀
     */
    public static final String AUTH_PREFIX = "AUTH";

    public static final String WEB_LOCAL_IP = "WEB_LOCAL_IP";

    /**
     * 菜单代码前缀
     */
    public static final String MENU_PREFIX = "Menu";

    /**
     * 菜单长度
     */
    public static final String CODE_LENGTH = "000000";


    public static final Integer DEFAULT_CURRENT = 1;
    public static final Integer DEFAULT_SIZE = 1000;
    public static final String DEFAULT_DELETE = "0";
    public static final String DEFAULT_SPLIT = ",";
    public static final String DEFAULT_Y = "Y";
    public static final String DEFAULT_N = "N";


    /**
     * 默认用户
     */
    public static final String DEFAULT_USER = "ADMIN";

    public static final String PRAMS_SEPARATOR = ",";
    public static final String CDR_PROPERTIES =  "r3GTq+DwkllnzI/Z";

}
